package com.itheima.config;

import com.alibaba.druid.pool.DruidDataSource;
import com.itheima.factory.DataSourceFactory;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

@Configuration
@ComponentScan("com.itheima")
public class SpringConfiguration {

    public DataSource getDataSource(){
        return DataSourceFactory.getDataSource();

    }


}
